<template>
  <div>
    <work-pool v-if="userInfo.roleId == 21" />
    <workConditionSum v-else />
  </div>
</template>

<script>
import workPool from "../../businessManagement/workPool/index.vue";
import workConditionSum from "../../businessManagement/workConditionSum/index.vue";
export default {
  name: "birthdayW",
  components: { workConditionSum, workPool },
  data() {
    return {
      userInfo: {},
    };
  },
  created() {
    this.userInfo = JSON.parse(localStorage.getItem("userInfo"));
    this.$route.meta.pathArr[2].title = this.userInfo.roleId == 21 ? '工作池' : '工作状况统计'
  },
  mounted() { 
  },
};
</script>